/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.lottery.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.lottery.entity.WechatAddress;
import com.thinkgem.jeesite.modules.lottery.dao.WechatAddressDao;

/**
 * 微信抽奖助手-地址管理模块Service
 * @author 黄茂展
 * @version 2019-07-31
 */
@Service
@Transactional(readOnly = true)
public class WechatAddressService extends CrudService<WechatAddressDao, WechatAddress> {

	@Autowired
	private WechatAddressDao wechatAddressDao;

	public WechatAddress get(String id) {
		return super.get(id);
	}
	
	public List<WechatAddress> findList(WechatAddress wechatAddress) {
		return super.findList(wechatAddress);
	}
	
	public Page<WechatAddress> findPage(Page<WechatAddress> page, WechatAddress wechatAddress) {
		return super.findPage(page, wechatAddress);
	}
	
	@Transactional(readOnly = false)
	public void save(WechatAddress wechatAddress) {
		super.save(wechatAddress);
	}

	@Transactional(readOnly = false)
	public String saveAddress(WechatAddress wechatAddress){
		return wechatAddressDao.saveAddress(wechatAddress);
	}
	
	@Transactional(readOnly = false)
	public void delete(WechatAddress wechatAddress) {
		super.delete(wechatAddress);
	}
	
}